package com.uzai.console.mapper;

import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.uzai.console.dto.mini.miniorderservice.MiniOrderServiceQuery;
import com.uzai.console.entity.MiniOrderService;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Repository;

import java.util.List;

@Repository
public interface MiniOrderServiceMapper {
    int deleteById(@Param("id") Long id, @Param("merId") Long merId);

    int insert(MiniOrderService record);

    int insertSelective(MiniOrderService record);

    MiniOrderService selectById(@Param("id") Long id, @Param("merId") Long merId);

    int updateByIdSelective(MiniOrderService record);

    int updateById(MiniOrderService record);

    int updateStatus(MiniOrderService record);

    /**
     * 分页查询
     * @param page
     * @param query
     * @return
     */
    List<MiniOrderService> findByList(Page<MiniOrderService> page, @Param("query") MiniOrderServiceQuery query);
}